package com.travel.sight.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.travel.common.utils.PageUtils;
import com.travel.sight.entity.LikeEntity;

import java.util.Map;

/**
 * 
 *
 * @author lxw
 * @email lxw@gmail.com
 * @date 2023-11-01 17:41:24
 */
public interface LikeService extends IService<LikeEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveLike(Integer attractionId, Integer userId);

    Boolean isLike(Integer attractionId, Integer userId);

    void deleteLike(Integer attractionId, Integer userId);

    Integer getLikeNumByUserId(Integer userId);

    void updateAfterLike(Integer attractionId, Integer userId,Boolean isLike);
}

